<template>
    <div>
        <keep-alive>
            <medical v-if="type=='医疗保险'" :state="'医师审核'"> </medical>    
            <rescueMeidcaUp v-if="type=='紧急医疗'" :name="'紧急医疗'" :state="'医师审核'"> </rescueMeidcaUp>
            <rescueChanger v-if="type=='紧急转院'" :name="'紧急转院'" :state="'医师审核'"> </rescueChanger>    
            <rescueReturned v-if="type=='紧急运返'" :name="'紧急运返'" :state="'医师审核'"> </rescueReturned>    
        </keep-alive>
    </div>
</template>
<script>

import medical from '@/components/lipei/lipeiaddForm/yishicheckFormMedia'
import rescueMeidcaUp from '@/components/lipei/lipeiaddForm/rescueMeidca'
import rescueChanger from '@/components/lipei/lipeiaddForm/rescueMeidca'
import rescueReturned from '@/components/lipei/lipeiaddForm/rescueMeidca'
export default {
    data() {
        return {
            type: ""
        }
    },
    components: {
        'medical': medical,
        'rescueMeidcaUp': rescueMeidcaUp,
        'rescueChanger': rescueChanger,
        'rescueReturned': rescueReturned

    },
    activated() {
        this.type = this.$route.query["type"];
    }
}
</script>
   